import axios from 'axios';

export function getOrderInfoPage(params: any) {
  return axios.get('/mall/orderinfo/page', { params });
}

export function addOrderInfo(data: any) {
  return axios.post('/mall/orderinfo', data);
}

export function updateOrderInfo(data: any) {
  return axios.put('/mall/orderinfo', data);
}

/**
 *  注意：这里是反单引号`
 */
export function deleteOrderInfo(id: string) {
  return axios.delete(`/mall/orderinfo/${id}`);
}
